package cn.sccl.dirms.security.service;

import cn.sccl.common.model.PageResult;
import cn.sccl.common.service.BaseManager;
import cn.sccl.dirms.security.model.User;
import cn.sccl.dirms.security.model.UserExtend;
import cn.sccl.dirms.security.model.UserPrincipal;

import java.util.List;

/**
 * Created by 杨浩宇 on 2016-02-24.
 */
public interface UserManager extends BaseManager<User> {
    public User findByName(String name);

    public List<User> findUserData(String id);

    public List<User> findUserDataByName(String name);

    public List<User> findUserOfRole(String name,String id);

    public List<UserPrincipal> findUserPrincipal(String userName);

    public User getUser(String id);


    PageResult<User> findAvailableUserDataOfRole(String id, long pageIndex, int pageSize);

    PageResult<UserExtend> findExistUserDataOfRole(String id, long pageIndex, int pageSize);
}